47cb280fb16e2b3e4df38ed7c02e1f0a9a2a08fe,api2-war/src/main/java/eu/europeana/api2/v2/web/controller/SitemapController.java,SitemapController,handleSitemapIndexHashed,#HttpServletResponse#,60

Before Change


        String cacheFile = "europeana-sitemap-index-hashed.xml";
        // Generate the requested sitemap if it's outdated / doesn't exist (and is not currently being
        // created)
        if ((objectStorageClient.getWithoutBody(cacheFile) == null)) {
            boolean success = false;
            ServletOutputStream out = response.getOutputStream();
            log.error(String.format("Sitemap does not exist"));

After Change


        String cacheFile = "europeana-sitemap-index-hashed.xml";
        // Generate the requested sitemap if it's outdated / doesn't exist (and is not currently being
        // created)
        if (objectStorageClient.getWithoutBody(cacheFile).isPresent()) {
            // Read the sitemap from file
            readCachedSitemap(response.getOutputStream(), objectStorageClient, cacheFile);
        } else {